package com.sright.bcard.user.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.user.dal.entity.MemberDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberDOMapper extends BaseMapper<MemberDO> {

    MemberDO selectMemberByNickName(@Param("nickname") String nickName);

    MemberDO selectByOpenId(@Param("openId") String openId);

    List<MemberDO> selectAll();

    Integer countAvatar(@Param("needReview") Integer needReview);

    List<MemberDO> avatarList(@Param("paramRequest") PageParamRequest paramRequest, @Param("needReview") Integer needReview);
}